<?php
/*
+ ----------------------------------------------------------------------------------------------+
|     e107 website system  : http://e107.org.ru
|     Released under the terms and conditions of the GNU General Public License (http://gnu.org).
|
|     Plugin "roll_mini"
|     Author: Alex ANP alex-anp@ya.ru
|     Home page: http://e107plugins.blogspot.com
+-----------------------------------------------------------------------------------------------+
*/

$lan_file = e_PLUGIN."roll_mini/languages/".e_LANGUAGE.".php";
include_once((file_exists($lan_file) ? $lan_file : e_PLUGIN."roll_mini/languages/English.php"));

$eplug_name = ROLL_M_L001;
$eplug_version = "1.2";
$eplug_author = "Alex ANP";
$eplug_logo = "button.png";
$eplug_url = "http://e107plugins.blogspot.com";
$eplug_email = "alex-anp@ya.ru";
$eplug_description = ROLL_M_L002;
$eplug_compatible = "e107 v7.x";
$eplug_readme = "Readme.txt";
$eplug_folder = "roll_mini";
$eplug_menu_name = "";
$eplug_conffile = "admin_config.php";
$eplug_icon = $eplug_folder."/images/icon.png";
$eplug_icon_small = $eplug_folder."/images/icon_16.png";
$eplug_caption =  ROLL_M_L001;

$eplug_prefs = array(
    "roll_m_name" => "".ROLL_M_L007."",
    "roll_m_index_size" => 1,
    "roll_m_cards_in_page" => 10,
    "roll_m_fullindex_show" => FALSE,
    "roll_m_search_show" => FALSE,
    "roll_m_comment_show" => FALSE
    );


$eplug_table_names = array(
        "roll_mini_cards",
        "roll_mini_cat"
        );

$eplug_tables = array("
CREATE TABLE ".MPREFIX."roll_mini_cards (
id INT(9) NOT NULL auto_increment ,
index_name VARCHAR( 50 ) NULL ,
name VARCHAR( 250 ) NULL ,
description TEXT NULL ,
PRIMARY KEY  (id)
) ENGINE = MYISAM ;
", "
INSERT INTO ".MPREFIX."roll_mini_cards VALUES (1, 'A', 'AutoTest', 'Auto test line.');
", "
ALTER TABLE ".MPREFIX."roll_mini_cards ADD description_2 TEXT NULL ;
");

$eplug_link = TRUE;
$eplug_link_name = ROLL_M_L001;
$eplug_link_url = e_PLUGIN."roll_mini/roll.php";

$eplug_done = "Installation Successful...";

$upgrade_add_prefs = "";

$upgrade_remove_prefs = "";

$upgrade_alter_tables = "";

$eplug_upgrade_done = "Upgrade Successful...";

?>